Skip to content

Instantly share code, notes, and snippets.

@randomaccess3
randomaccess3 / quickxor.py
Last active August 14, 2026 14:06
A vibe coded version of Microsoft's QuickXOR hash example code
# https://learn.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash?view=odsp-graph-online
# Usage: python C:\tools\quickxor.py -f file --base64
# This will present the hash of the file as you would see it in the OneDrive databases.
import argparse
import base64
MASK64 = 0xFFFFFFFFFFFFFFFF
class QuickXorHash:
@iannuttall
iannuttall / agentos-blueprint.md
Created August 14, 2026 12:10
AgentOS blueprint β€” reconstructed from Danny Postma's Agent SDK talk so an agent can build the system

AgentOS β€” Product Spec & Implementation Blueprint

Reconstructed from Danny Postma's talk How I Built My Own AgentOS on Claude's Agent SDK (So You Can Too) (2026). This document is both a product spec for a human and an implementation prompt for an AI coding agent. Build exactly this system. Do not invent features that are not specified here.

Role contracts and prompts in this file are reconstructed from the talk, not his verbatim files. Mark every reconstructed prompt in code comments and docs as such.


1. Goal and non-goals

Wechat for Linux tips and tricks

The tweaks in this snippit applies to Wechat for Linux.

Theming

Apply light/dark theme (based on KDE color scheme).

WeChat stores general configuration files under ~/.local/share/xwechat_files/all_users/config/, at global_config. However, the file is encrypted, along with checksum global_config.crc.

One way around this is to save two copies of global_config and global_config.crc of light and dark theme.

@FreddieOliveira
FreddieOliveira / docker.md
Last active August 14, 2026 13:59
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

view_items.php?id=
home.php?cat=
item_book.php?CAT=
www/index.php?page=
schule/termine.php?view=
goods_detail.php?data=
storemanager/contents/item.php?page_code=
view_items.php?id=
customer/board.htm?mode=
help/com_view.html?code=
@donaldmunro
donaldmunro / gist:38841d72c65a1c32f2bf83a4a00a2c9a
Created March 5, 2017 13:26
Display/print a GLM mat or vec
#include <glm/gtx/string_cast.hpp>
..
..
glm::mat4 mat;
..
..
std::cout << glm::to_string(mat) << std::endl;
@tweimann
tweimann / unicks.eu.md
Last active August 14, 2026 13:54
unicks.eu video save
@ccarcaci
ccarcaci / SPEC.md
Last active August 14, 2026 13:54
old_typewriter_gist

The Typewriter Formatting Specification

Version 0.0.2

This is a formal description of the plain-text formatting conventions of the mechanical typewriter, derived from the CommonMark Markdown specification. This revision targets a machine without overstriking.

The purpose of this specification is to provide some guidelines on how to write documents immediately readable from terminals with very limited rendering capabilities and also printable.

Reading documents written in other formats requires renders or degrading the reading experience to mentally skip the formatting syntax.

@smartbit
smartbit / Fedora UEFI GRUB Restore Guide (for BTRFS LUKS after Windows Install).md
Last active August 14, 2026 13:54
Fedora UEFI GRUB Restore Guide (for BTRFS/LUKS after Windows Install)

Purpose

This script automates the process of restoring the Fedora GRUB bootloader on a UEFI system after it has been removed or overwritten, typically by a Windows installation.

It is designed for a common Fedora setup: a LUKS-encrypted BTRFS root partition and a separate /boot partition. The script performs the following actions:

  1. Prompts for the LUKS encryption password to unlock the Fedora system partition.
  2. Correctly mounts the BTRFS root subvolume, the /boot partition, and the EFI System Partition (ESP).
  3. Binds the necessary system directories from the live environment.
  4. Executes a chroot command to run commands inside the installed Fedora system.